limitDecimalPlaces

Returns the entire string if input is not a number separated by a '.'

@nogc nothrow
string
limitDecimalPlaces
(
string input
,)

Parameters

input string

A input string in "523.987"

decimalPlaces ubyte

How many decimal places it must contain.

Return Value

Type: string

A slice which removes places after the decimal case if there exists more than it should

Meta